package com.csun.cmny.provider.model.dto.watch;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-01-18 09:18
 * @Description: the class watch volume dto
 */
@Data
@ApiModel(value = "设置孝心手环音量Dto")
public class WatchVolumeDto implements Serializable {

    private static final long serialVersionUID = -6476236983693853931L;

    /**
     * 设备Id
     */
    @NotNull(message = "{device.id.null}")
    private Long deviceId;

    /**
     * 音量 1 - 7
     */
    @NotNull(message = "{watch.config.volume.null}")
    @Range(min = 1, max = 7, message = "{watch.config.volume.range}")
    private Integer volume;

}
